package day03;

public class ZuoYe {
    public static void main(String[] args) {
        System.out.println(5%2);
        System.out.println(8%2);
        System.out.println(2%8);
        int a =5,b=5;
        a++;
        ++b;
        System.out.println(a);
        System.out.println(b);
        int aa=5,bb=5;
        aa--;
        --bb;
        System.out.println(aa);
        System.out.println(bb);
        int aaa=5,bbb=5;
        int c=aaa++;
        int d=++bbb;
        System.out.println(aaa);
        System.out.println(bbb);
        System.out.println(c);
        System.out.println(d);
        int aaaa=5,bbbb=5;
        int cc=aaaa--;
        int dd =--bbbb;
        System.out.println(aaaa);
        System.out.println(bbbb);
        System.out.println(cc);
        System.out.println(dd);

        boolean b1 =b>a;
        System.out.println(b1);
        System.out.println(c<b);
        System.out.println(a>=c);
        System.out.println(b<=a);
        System.out.println(b==c);
        System.out.println(a!=c);

        System.out.println(a+c>10);
        System.out.println(b%2==10);
        System.out.println(c++>5);
        System.out.println(c++>5);

        boolean b2 =b>a && b<c;
        System.out.println(b2);
        System.out.println(b<=c && b>a);
        System.out.println(a==b && c>b);
        System.out.println(b!=c && a<b);

        System.out.println(b>=a || b<c);
        System.out.println(b<=c || b>a);
        System.out.println(b!=c || a<b);
        System.out.println(a==b || c>b);

        boolean b3 =!(a<b);
        System.out.println(b3);
        System.out.println(!(a>b));

        boolean b4 =a>b && c++>2;
        System.out.println(b4);
        System.out.println(c);

        boolean b5 = a<b || c++ >2;
        System.out.println(b5);
        System.out.println(c);

        a +=10;
        System.out.println(a);
        a *=2;
        System.out.println(a);
        a/=6;
        System.out.println(a);
        short s = 5;
        s += 10;

        int age =38;
        System.out.println("age");
        System.out.println(age);
        System.out.println("age="+age);
        System.out.println("我的年龄是"+age);
        System.out.println("我今年"+age+"岁了");

        String name ="nxl";
        System.out.println("name"+name);
        System.out.println("大家好，我叫"+name);
        System.out.println("大家好，我叫"+name+"，今年"+age+"岁了");

        System.out.println(10+20+""+30);
        System.out.println(""+10+20+30);
        System.out.println(10+20+30+"");

        int num =5;
        int flag = num>0?1:1;
        System.out.println(flag);

        int q= 8,w=4;
        int max = q>w?q:w;
        System.out.println("max"+max);

        double price = 300.0;
        if (price>=500){
            price *=0.8;
        }
        System.out.println("消费"+price);


    }
}
